import Vue from 'vue'
import VueRouter from 'vue-router'



Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import ('../views/Home.vue')
  },
  {
    path: '/goods',
    name: 'Goods',
    component: () => import ('../views/Goods.vue')
  },
  {
    path: '/shoppingCar',
    name: 'ShoppingCar',
    component: () => import ('../views/ShoppingCar.vue')
  },
  {
    path: '/mostphone',
    name: 'MostPhone',
    component: () => import ('../views/most_phone.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
